import {
  get,
  post,
  //postForm,
  del,
} from "@/utils/http";
const packageName = `/back-api`;

/**
 * 调整单
 */
// 获取调整单详情
export function getDataAdjustOrderDetail(params) {
  return get(
    `${packageName}/dataAdjustOrderDetail/getDataAdjustOrderDetail`,
    params
  );
}
// 获取调整单列表(调整单id)
export function getDataAdjustOrderDetailPads(params) {
  return get(
    `${packageName}/dataAdjustOrderDetail/getDataAdjustOrderDetailPads`,
    params
  );
}
// 保存调整单详情
export function saveDataAdjustOrderDetailPad(params) {
  return post(
    `${packageName}/dataAdjustOrderDetail/saveDataAdjustOrderDetailPad`,
    params
  );
}
// 保存调整单
export function saveAdjustOrderPad(params) {
  return post(
    `${packageName}/dataAdjustOrderDetail/saveAdjustOrderPad`,
    params
  );
}
// 删除调整单详情(平板)
export function delAdjustOrderDetail(params) {
  return del(
    `${packageName}/dataAdjustOrderDetail/delAdjustOrderDetail`,
    params
  );
}

/**
 * 调整记录
 */
// 获取调整单记录列表
export function getAdjustOrderPadList(params) {
  return get(
    `${packageName}/dataAdjustOrderDetail/getAdjustOrderPadList`,
    params
  );
}
// 获取调整单记录详情
export function getAdjustOrderDetailPad(params) {
  return get(
    `${packageName}/dataAdjustOrderDetail/getAdjustOrderDetailPad`,
    params
  );
}
// 审核调整单
export function approveAdjustOrderPad(params) {
  return post(
    `${packageName}/dataAdjustOrderDetail/approveAdjustOrderPad`,
    params
  );
}

/**
 * 重量调整单
 */
// 获取重量调整单详情
export function getDataAdjustOrderWeightDetail(params) {
  return get(
    `${packageName}/dataAdjustOrderWeightDetail/getDataAdjustOrderWeightDetail`,
    params
  );
}
// 获取重量调整单列表(重量调整单id)
export function getDataAdjustOrderWeightDetailPads(params) {
  return get(
    `${packageName}/dataAdjustOrderWeightDetail/getDataAdjustOrderWeightDetailPads`,
    params
  );
}
// 保存重量调整单详情
export function saveDataAdjustOrderWeightDetailPad(params) {
  return post(
    `${packageName}/dataAdjustOrderWeightDetail/saveDataAdjustOrderWeightDetailPad`,
    params
  );
}
// 保存重量调整单
export function saveAdjustOrderWeightPad(params) {
  return post(
    `${packageName}/dataAdjustOrderWeightDetail/saveAdjustOrderWeightPad`,
    params
  );
}
// 删除重量调整单详情(平板)
export function delAdjustOrderWeightDetail(params) {
  return del(
    `${packageName}/dataAdjustOrderWeightDetail/delAdjustOrderWeightDetail`,
    params
  );
}
/**
 * 重量调整记录
 */
// 获取重量调整单记录列表
export function getAdjustOrderWeightPadList(params) {
  return get(
    `${packageName}/dataAdjustOrderWeightDetail/getAdjustOrderWeightPadList`,
    params
  );
}
// 获取重量调整单记录详情
export function getAdjustOrderWeightDetailPad(params) {
  return get(
    `${packageName}/dataAdjustOrderWeightDetail/getAdjustOrderWeightDetailPad`,
    params
  );
}
// 审核重量调整单
export function approveAdjustOrderWeightPad(params) {
  return post(
    `${packageName}/dataAdjustOrderWeightDetail/approveAdjustOrderWeightPad`,
    params
  );
}
// 弃审核
export function giveUpApproveDataAdjustOrder(params) {
  return post(
    `${packageName}/dataAdjustOrder/giveUpApproveDataAdjustOrder`,
    params
  );
}
